﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Croupier_iteration_1.Model;

namespace Croupier_iteration_1.ViewModel
{
    public class CroupierViewModel
    {
        private Croupier croupier {get ; set ;}
        public string Nom { get {return croupier.Nom;} set {croupier.Nom = value ;} }
        public string Prenom { get {return croupier.Prenom;} set {croupier.Prenom = value ;} }

        public string Genre { 
            get 
            {
                return croupier.Genre.ToString ();
            } 
            set 
            {
                if (value==Model.Genre.Homme.ToString())
                    croupier.Genre = Model.Genre.Homme ;
                else if (value == Model.Genre.Femme.ToString())
                    croupier.Genre = Model.Genre.Femme ;
            } 
        }

        public int Experience { get {return croupier.Experience;} set {croupier.Experience = value ;} }

        public CroupierViewModel(Croupier prmCroupier)
        {
            this.croupier = prmCroupier;
        }
    }
}
